<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" >
<head>
	<meta charset="UTF-8">
	<title>首页</title>
</head>
<body>
<p>你好！[[${user.userName}]]</p>

<p shiro:hasRole="admin">你的角色为超级管理员</p>
<p shiro:hasRole="test">你的角色为测试帐户</p>

<div>
	<a shiro:hasPermission="user:user" th:href="@{/user/list}">获取用户信息</a>
	<a shiro:hasPermission="user:add"  th:href="@{/user/add}">新增用户</a>
	<a shiro:hasPermission="user:delete" th:href="@{/user/delete}">删除用户</a>
</div>
<a shiro:hasRole="admin" th:href="@{/online/index}" >在线用户管理</a>

<p/>
<a th:href="@{/logout}">注销</a>
</body>
</html>